package com.example.webbrowser.Database;

import java.util.List;


import android.database.sqlite.SQLiteDatabase;
import com.example.webbrowser.Entity.MarkListView;


public interface bd {
    //增加书签
    public boolean addMark(SQLiteDatabase sqLiteDatabase, String name,String url);

    //删除书签
    public boolean deleteMark(SQLiteDatabase sqLiteDatabase, String id);

    public boolean deleteMarkByUrl(SQLiteDatabase sqLiteDatabase, String url);

    public String getId(SQLiteDatabase sqLiteDatabase, String url);

    //修改书签
    public boolean alterMark(SQLiteDatabase sqLiteDatabase, String id,String name, String url);

    //获取所有书签
    public List<MarkListView> getAllMark(SQLiteDatabase sqLiteDatabase);

    //查询url是否重复
    public boolean checkUrl(SQLiteDatabase sqLiteDatabase, String url);

    //回滚
    void transactionAround(boolean readOnly, CallBack callback);

}

